<?php if (!defined('THINK_PATH')) exit(); /*a:4:{s:103:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/public/../application/admin/view/facrm/backlog/index.html";i:1676906865;s:88:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/layout/default.html";i:1676906865;s:85:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/common/meta.html";i:1676906865;s:87:"/mnt/client2023/d-crmqing.bigchun.com/fastcrm/application/admin/view/common/script.html";i:1676906865;}*/ ?>
<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8">
<title><?php echo (isset($title) && ($title !== '')?$title:''); ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="renderer" content="webkit">
<meta name="referrer" content="never">
<meta name="robots" content="noindex, nofollow">

<link rel="shortcut icon" href="/assets/img/favicon.ico" />
<!-- Loading Bootstrap -->
<link href="/assets/css/backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">

<?php if(\think\Config::get('fastadmin.adminskin')): ?>
<link href="/assets/css/skins/<?php echo \think\Config::get('fastadmin.adminskin'); ?>.css?v=<?php echo \think\Config::get('site.version'); ?>" rel="stylesheet">
<?php endif; ?>

<!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
<!--[if lt IE 9]>
  <script src="/assets/js/html5shiv.js"></script>
  <script src="/assets/js/respond.min.js"></script>
<![endif]-->
<script type="text/javascript">
    var require = {
        config:  <?php echo json_encode($config); ?>
    };
</script>

    </head>

    <body class="inside-header inside-aside <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
        <div id="main" role="main">
            <div class="tab-content tab-addtabs">
                <div id="content">
                    <div class="row">
                        <div class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
                            <section class="content-header hide">
                                <h1>
                                    <?php echo __('Dashboard'); ?>
                                    <small><?php echo __('Control panel'); ?></small>
                                </h1>
                            </section>
                            <?php if(!IS_DIALOG && !\think\Config::get('fastadmin.multiplenav') && \think\Config::get('fastadmin.breadcrumb')): ?>
                            <!-- RIBBON -->
                            <div id="ribbon">
                                <ol class="breadcrumb pull-left">
                                    <?php if($auth->check('dashboard')): ?>
                                    <li><a href="dashboard" class="addtabsit"><i class="fa fa-dashboard"></i> <?php echo __('Dashboard'); ?></a></li>
                                    <?php endif; ?>
                                </ol>
                                <ol class="breadcrumb pull-right">
                                    <?php foreach($breadcrumb as $vo): ?>
                                    <li><a href="javascript:;" data-url="<?php echo $vo['url']; ?>"><?php echo $vo['title']; ?></a></li>
                                    <?php endforeach; ?>
                                </ol>
                            </div>
                            <!-- END RIBBON -->
                            <?php endif; ?>
                            <div class="content">
                                <style type="text/css">

    .orange {
        background: #fa8564 !important;
    }

    .tar {
        background: #45cf95 !important;
    }



    .pink {
        background: #AC75F0 !important;
    }

    .yellow-b {
        background: #fdd752 !important;
    }

    .stat-elem {

        background-color: #fff;
        padding: 18px;
        border-radius: 40px;

    }

    .stat-info {
        text-align: center;
        background-color: #fff;
        border-radius: 5px;
        margin-top: -5px;
        padding: 8px;
        -webkit-box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        box-shadow: 0 1px 0px rgba(0, 0, 0, 0.05);
        font-style: italic;
    }

    .stat-icon {
        text-align: center;
        margin-bottom: 5px;
    }

    .st-red {
        background-color: #F05050;
    }

    .st-green {
        background-color: #27C24C;
    }

    .st-violet {
        background-color: #7266ba;
    }

    .st-blue {
        background-color: #23b7e5;
    }

    .stats .stat-icon {
        color: #28bb9c;
        display: inline-block;
        font-size: 26px;
        text-align: center;
        vertical-align: middle;
        width: 50px;
        float: left;
    }

    .stat {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        display: inline-block;
    }

    .stat .value {
        font-size: 20px;
        line-height: 24px;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: 500;
    }

    .stat .name {
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat.lg .value {
        font-size: 26px;
        line-height: 28px;
    }

    .stat.lg .name {
        font-size: 16px;
    }

    .stat-col .progress {
        height: 2px;
    }

    .stat-col .progress-bar {
        line-height: 2px;
        height: 2px;
    }

    .item {
        padding: 30px 0;
    }



    #statistics .panel {
        min-height: 150px;
    }

    #statistics .panel h5 {
        font-size: 13px;
    }
	.invoice{
	    position: unset;
		background: unset;
		border: unset;
		padding: unset;
		margin: unset;
	}
</style>

<div class="panel panel-default panel-intro">
    <div class="panel-body">
    <div class="row">

        <div class="col-lg-12">
            <div class="card sameheight-item stats">
                <div class="card-block">
                    <div class="row row-sm stats-container">
                        <div class="col-xs-4 stat-col">
                            <div class="stat-icon"><i class="fa fa-users"></i></div>
                            <div class="stat text-blue ">
                                <a href="facrm/customer/index?ref=addtabs&from_type=need" class="btn-addtabs" title="<?php echo __('需跟进的客户'); ?>">
                                    <div class="value"> <?php echo $communicate; ?></div>
                                    <div class="name"> <?php echo __('今日需跟进的客户'); ?></div>
                                </a>
                            </div>
                            <div class="progress">
                                <div class="progress-bar progress-bar-success" style="width: 30%"></div>
                            </div>
                        </div>
                        <div class="col-xs-4 stat-col">
                            <div class="stat-icon text-red "><i class="fa fa-flag"></i></div>
                            <div class="stat">
                                <a href="facrm/customer/index?ref=addtabs&from_type=expire" class="btn-addtabs" title="<?php echo __('即将过期客户'); ?>">
                                <div class="value"> <?php echo $lose_num; ?></div>
                                <div class="name"> <?php echo __('即将过期的客户'); ?></div>
                                </a>
                            </div>
                            <div class="progress">
                                <div class="progress-bar progress-bar-success" style="width: 25%"></div>
                            </div>
                        </div>
                        <div class="col-xs-4  stat-col">
                            <div class="stat-icon"><i class="fa fa-calendar-check-o"></i></div>
                            <div class="stat">
                                <a href="facrm/business/index?ref=addtabs&from_type=need" class="btn-addtabs" title="<?php echo __('需跟进的商机'); ?>">
                                    <div class="value"> <?php echo $business; ?></div>
                                    <div class="name"> <?php echo __('今日需跟进的商机'); ?></div>
                                </a>
                            </div>
                            <div class="progress">
                                <div class="progress-bar progress-bar-success" style="width: 25%"></div>
                            </div>
                        </div>
                        <?php if(($auth->check('facrm/contract/index'))): ?>

                        <div class="col-xs-4  stat-col">
                            <div class="stat-icon text-red"><i class="fa fa-calendar-times-o"></i></div>
                            <div class="stat">
                                <a href="facrm/contract/index?ref=addtabs&from_type=expire" class="btn-addtabs" title="<?php echo __('即将到期合同'); ?>">
                                <div class="value"> <?php echo $contract_expire; ?></div>
                                <div class="name"> <?php echo __('即将到期合同'); ?></div>
                                </a>
                            </div>
                            <div class="progress">
                                <div class="progress-bar progress-bar-success" style="width: 25%"></div>
                            </div>
                        </div>
                        <div class="col-xs-4  stat-col">
                            <div class="stat-icon text-info"><i class="fa fa-list-alt"></i></div>
                            <div class="stat">
                                <a href="facrm/contract/index?ref=addtabs&from_type=return" class="btn-addtabs" title="<?php echo __('即将到期合同'); ?>">
                                <div class="value"> <?php echo $contract_return; ?></div>
                                <div class="name"> <?php echo __('待回款合同'); ?></div>
                                </a>
                            </div>
                            <div class="progress">
                                <div class="progress-bar progress-bar-success" style="width: 25%"></div>
                            </div>
                        </div>
                        <?php endif; ?>


                        <div class="col-xs-4  stat-col">
                            <div class="stat-icon text-info"><i class="fa fa-link fa-fw"></i></div>
                            <div class="stat">
                                <a href="facrm/clues/index?ref=addtabs&from_type=need" class="btn-addtabs" title="<?php echo __('待跟进线索'); ?>">
                                    <div class="value"> <?php echo $clues_num; ?></div>
                                    <div class="name"> <?php echo __('待跟进线索'); ?></div>
                                </a>
                            </div>
                            <div class="progress">
                                <div class="progress-bar progress-bar-success" style="width: 25%"></div>
                            </div>
                        </div>





                    </div>
                </div>
            </div>
        </div>
    </div>
    </div>

    <div class="panel-heading">
        <span class="pull-right-container">
            <a class="label pull-right bg-purple "
            href='javascript:Layer.alert("<img src=\"<?php echo url("facrm/common/qrcode"); ?>?text=<?php echo url("facrm/third/connect","","",true); ?>\" style=\"max-height:250px;max-width:250px\"><p>请用微信扫描，如要登录请登录然后再扫。</p>");'>
                <i class="fa fa-qrcode fa-fw"></i>绑定公众号
            </a>
            </span>
        <?php echo build_heading(null,FALSE); ?>
        <ul class="nav nav-tabs" data-field1="scene_id">
            <?php if(is_array($scene_list) || $scene_list instanceof \think\Collection || $scene_list instanceof \think\Paginator): if( count($scene_list)==0 ) : echo "" ;else: $i=0; foreach($scene_list as $key=>$vo): ++$i; ?>
            <li <?php if($i == 1): ?>class='active'<?php endif; ?>><a  href="#t-<?php echo $key; ?>" data-value="<?php echo $key; ?>" data-toggle="tab">
            <?php echo $vo; ?><span class="pull-right-container <?php echo $key; ?>"><small class="label pull-right bg-orange"></small></span>
            </a></li>

            <?php endforeach; endif; else: echo "" ;endif; ?>
        </ul>

    </div>



    <div class="panel-body">

        <div class="widget-body no-padding">
            <div id="myTabContent" class="tab-content">
                    
                    <?php if(is_array($scene_list) || $scene_list instanceof \think\Collection || $scene_list instanceof \think\Paginator): if( count($scene_list)==0 ) : echo "" ;else: $i=0; foreach($scene_list as $key=>$vo): ++$i; ?>
					<div id="toolbar<?php echo $i; ?>" class="toolbar ">
                        <a href="javascript:;" class="btn btn-primary btn-refresh" data-force-refresh='false'><i class="fa fa-refresh"></i></a>
                    </div>
                    <div class="tab-pane fade  <?php if($i==1): ?> active in<?php endif; ?>" id="t-<?php echo $key; ?>">
                        <table id="<?php echo $key; ?>" class="table table-striped table-bordered table-hover  table-nowrap"
                               width="100%">
                        </table>
                    </div>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
            </div>
        </div>
    </div>
</div>

<script>
    var scene_list=<?php echo json_encode($scene_list); ?>;
</script>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <script src="/assets/js/require<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js" data-main="/assets/js/require-backend<?php echo \think\Config::get('app_debug')?'':'.min'; ?>.js?v=<?php echo htmlentities($site['version']); ?>"></script>
    </body>
</html>
